package myJs.api

import myJs.Implicits._
import myJs.myPkg.MyFetch
import org.scalajs.macrotaskexecutor.MacrotaskExecutor.Implicits._
import upickle.default._

/**
 * Created by yz on 7/5/2022
 */
object AbundanceSc {

  val baseUrl = s"${Api.apiUrl}/gepLiver/abundanceSc"

  def all = {
    val url = s"${baseUrl}/all"
    MyFetch.getRnStr(url = s"${url}").map { str =>
      read[List[ujson.Obj]](str)
    }
  }


}
